package pers.wwz.study.nginx.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Slf4j
@RestController
@RequestMapping("/nginx")
public class NginxController {

    @RequestMapping("/getUnderLineHeader")
    public void getHeader(HttpServletRequest httpServletRequest){
        String loginToken = httpServletRequest.getHeader("login_token");
        log.info("loginToken:{}",loginToken);

    }
}
